package com.employee.service.impl;

import com.employee.mapper.ShenPiRenMapper;
import com.employee.pojo.dto.UpdateShenPiRenDTO;
import com.employee.pojo.vo.KaoQinRenVO;
import com.employee.pojo.vo.ShenPiRenVO;
import com.employee.service.ShenpiRenService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ShenPiRenServiceImpl implements ShenpiRenService {
    @Autowired
    ShenPiRenMapper shenPiRenMapper;
    @Override
    public List<ShenPiRenVO> getShenPiRenList() {
        return shenPiRenMapper.getShenPiRenList();
    }

    @Override
    public List<ShenPiRenVO> selectByName(String name) {
        return shenPiRenMapper.selectByName(name);
    }

    @Override
    public List<KaoQinRenVO> getKaoQinRenList() {
        return shenPiRenMapper.getKaoQinRenList();
    }

    @Override
    public List<KaoQinRenVO> getQingJiaRenList() {
        return shenPiRenMapper.getQingJiaRenList();
    }

    @Override
    public void updateShenPiRen(UpdateShenPiRenDTO updateShenPiRenDTO) {
        shenPiRenMapper.updateShenPiRen(updateShenPiRenDTO);
    }
}
